// 只能转换十进制之内的
const Stack = require('./00-封装栈结构')

function SysConvert(num, scale) {
  let s = new Stack()
  while (num) {
    s.push(num % scale)
    num = Math.floor(num / scale)
  }
  return s.toString()
}

console.log(SysConvert(464, 2));